<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.net.cluster.model.ICache</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.net.cluster.model.ICache";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.net.cluster.model.ICache.html" class="symbol">tango.net.cluster.model.ICache</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>April 2004: Initial release
<dl>
<dt class="decl">interface <a class="symbol _interface" name="ICache" href="./htmlsrc/tango.net.cluster.model.ICache.html#L19" kind="interface" beg="19" end="53">ICache</a><span class="tparams">(K, V)</span>; <a title="Permalink to this symbol" href="#ICache" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.cluster.model.ICache.html#L19">#</a></dt>
<dd class="ddef">
<div class="summary"></div>
<dl>
<dt class="decl">V <a class="symbol _function" name="ICache.get" href="./htmlsrc/tango.net.cluster.model.ICache.html#L27" kind="function" beg="27" end="27">get</a><span class="params">(K <em>key</em>)</span>; <a title="Permalink to this symbol" href="#ICache.get" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.cluster.model.ICache.html#L27">#</a></dt>
<dd class="ddef">
<div class="summary">Get the cache entry identified by the given key</div></dd>
<dt class="decl">bool <a class="symbol _function" name="ICache.put" href="./htmlsrc/tango.net.cluster.model.ICache.html#L40" kind="function" beg="40" end="40">put</a><span class="params">(K <em>key</em>, V <em>entry</em>, Time <em>time</em> = Time.init)</span>; <a title="Permalink to this symbol" href="#ICache.put" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.cluster.model.ICache.html#L40">#</a></dt>
<dd class="ddef">
<div class="summary">Place an entry into the cache and associate it with the
                provided key. Note that there can be only one entry for
                any particular key. If two keys entries are added with
                the same key, the second effectively overwrites the first.</div>
Returns what it was given</dd>
<dt class="decl">V <a class="symbol _function" name="ICache.remove" href="./htmlsrc/tango.net.cluster.model.ICache.html#L52" kind="function" beg="52" end="52">remove</a><span class="params">(K <em>key</em>, Time <em>time</em> = Time.max)</span>; <a title="Permalink to this symbol" href="#ICache.remove" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.net.cluster.model.ICache.html#L52">#</a></dt>
<dd class="ddef">
<div class="summary">Remove (and return) the cache entry associated with the
                provided key. The entry will not be removed if it's time
                attribute is newer than the (optional) specified 'timelimit'.</div>
Returns null if there is no such entry.</dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2004 Kris Bell. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:03:55 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>